﻿<div class="container-fluid navbar-fixed-top top-bar">
    <div class="container-title">
        <div class="container-title-back" ng-click="back()"></div>
        <div class="container-title-main">备案点位置</div>
    </div>
</div>
<div class="clear50"></div>
<link rel="stylesheet" href="http://www.nbmap.gov.cn/leaflet/leaflet.css">
<script src="http://www.nbmap.gov.cn/leaflet/leaflet.js"></script>
<script src="http://www.nbmap.gov.cn/scripts/lib/mapAPI/layer.wmts-src.js"></script>
<script src="http://www.nbmap.gov.cn/scripts/lib/mapAPI/layer.tdt-src.js"></script>
<div id="mapDiv" style="width:600px;height:500px"></div>
<script>
    //添加瓦片图层
    var layers = [];
    layers.push(new L.TileLayer.TDT.Vector());
    layers.push(new L.TileLayer.TDT.VectorAnno());
    map = new L.map('mapDiv', { layers: layers, attribution: false, crs: L.CRS.CustomLevel });
    var xy = window.location.href;
    var xy2 = new Array;
    xy2 = xy.split("/");
    var length = xy2.length;
    var xy3 = xy2[length - 1];
    var xy4 = xy3.split(",");
    var x = xy4[0];
    var y = xy4[1];
    map.setView([x, y], 11);
</script>